diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211214.txt b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211214.txt index 2d93dd0f..7f3d4dab 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211214.txt +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Logs/log-20211214.txt @@ -1,807 +1,1293 @@ -2021-12-14 17:22:59.445 G Starting web host. -2021-12-14 17:23:02.514 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-12-14 17:23:02.589 G Loaded ABP modules: -2021-12-14 17:23:02.591 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule -2021-12-14 17:23:02.591 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule -2021-12-14 17:23:02.592 G - Win.Sfs.SettleAccount.SettleAccountJobModule -2021-12-14 17:23:02.592 G - Win.Sfs.SettleAccount.SettleAccountDomainModule -2021-12-14 17:23:02.593 G - Volo.Abp.Domain.AbpDddDomainModule -2021-12-14 17:23:02.593 G - Volo.Abp.Auditing.AbpAuditingModule -2021-12-14 17:23:02.594 G - Volo.Abp.Data.AbpDataModule -2021-12-14 17:23:02.594 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule -2021-12-14 17:23:02.595 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule -2021-12-14 17:23:02.595 G - Volo.Abp.Validation.AbpValidationAbstractionsModule -2021-12-14 17:23:02.596 G - Volo.Abp.Uow.AbpUnitOfWorkModule -2021-12-14 17:23:02.596 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule -2021-12-14 17:23:02.597 G - Volo.Abp.Json.AbpJsonModule -2021-12-14 17:23:02.597 G - Volo.Abp.Timing.AbpTimingModule -2021-12-14 17:23:02.597 G - Volo.Abp.Localization.AbpLocalizationModule -2021-12-14 17:23:02.598 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule -2021-12-14 17:23:02.598 G - Volo.Abp.Settings.AbpSettingsModule -2021-12-14 17:23:02.599 G - Volo.Abp.Security.AbpSecurityModule -2021-12-14 17:23:02.599 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule -2021-12-14 17:23:02.600 G - Volo.Abp.Threading.AbpThreadingModule -2021-12-14 17:23:02.600 G - Volo.Abp.EventBus.AbpEventBusModule -2021-12-14 17:23:02.601 G - Volo.Abp.Guids.AbpGuidsModule -2021-12-14 17:23:02.601 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule -2021-12-14 17:23:02.601 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule -2021-12-14 17:23:02.605 G - Volo.Abp.Specifications.AbpSpecificationsModule -2021-12-14 17:23:02.605 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule -2021-12-14 17:23:02.606 G - Volo.Abp.Validation.AbpValidationModule -2021-12-14 17:23:02.607 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule -2021-12-14 17:23:02.607 G - Volo.Abp.Application.AbpDddApplicationContractsModule -2021-12-14 17:23:02.608 G - Volo.Abp.Authorization.AbpAuthorizationModule -2021-12-14 17:23:02.609 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule -2021-12-14 17:23:02.609 G - Volo.Abp.AutoMapper.AbpAutoMapperModule -2021-12-14 17:23:02.610 G - Volo.Abp.Dapper.AbpDapperModule -2021-12-14 17:23:02.611 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule -2021-12-14 17:23:02.611 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule -2021-12-14 17:23:02.613 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule -2021-12-14 17:23:02.614 G - Volo.Abp.Http.Client.AbpHttpClientModule -2021-12-14 17:23:02.615 G - Volo.Abp.Http.AbpHttpModule -2021-12-14 17:23:02.616 G - Volo.Abp.Http.AbpHttpAbstractionsModule -2021-12-14 17:23:02.617 G - Volo.Abp.Minify.AbpMinifyModule -2021-12-14 17:23:02.622 G - Volo.Abp.Castle.AbpCastleCoreModule -2021-12-14 17:23:02.623 G - Volo.Abp.IdentityModel.AbpIdentityModelModule -2021-12-14 17:23:02.625 G - Volo.Abp.Caching.AbpCachingModule -2021-12-14 17:23:02.626 G - Volo.Abp.Serialization.AbpSerializationModule -2021-12-14 17:23:02.627 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule -2021-12-14 17:23:02.628 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule -2021-12-14 17:23:02.630 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule -2021-12-14 17:23:02.631 G - Volo.Abp.Users.AbpUsersDomainSharedModule -2021-12-14 17:23:02.632 G - Volo.Abp.Features.AbpFeaturesModule -2021-12-14 17:23:02.633 G - Volo.Abp.Users.AbpUsersAbstractionModule -2021-12-14 17:23:02.638 G - Volo.Abp.Application.AbpDddApplicationModule -2021-12-14 17:23:02.641 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule -2021-12-14 17:23:02.643 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule -2021-12-14 17:23:02.644 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule -2021-12-14 17:23:02.645 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule -2021-12-14 17:23:02.645 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule -2021-12-14 17:23:02.646 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule -2021-12-14 17:23:02.647 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule -2021-12-14 17:23:02.648 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule -2021-12-14 17:23:02.649 G - Volo.Abp.UI.AbpUiModule -2021-12-14 17:23:02.652 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule -2021-12-14 17:23:02.653 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule -2021-12-14 17:23:02.654 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule -2021-12-14 17:23:02.655 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule -2021-12-14 17:23:02.656 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule -2021-12-14 17:23:02.656 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule -2021-12-14 17:23:02.657 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule -2021-12-14 17:23:02.658 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule -2021-12-14 17:23:02.659 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule -2021-12-14 17:23:02.660 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule -2021-12-14 17:23:02.661 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule -2021-12-14 17:23:02.662 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule -2021-12-14 17:23:02.662 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule -2021-12-14 17:23:02.663 G - Volo.Abp.Autofac.AbpAutofacModule -2021-12-14 17:23:02.664 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule -2021-12-14 17:23:02.668 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule -2021-12-14 17:23:02.669 G - Volo.Abp.BlobStoring.AbpBlobStoringModule -2021-12-14 17:23:02.669 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule -2021-12-14 17:23:02.670 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule -2021-12-14 17:23:02.671 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule -2021-12-14 17:23:02.672 G - Volo.Abp.Hangfire.AbpHangfireModule -2021-12-14 17:23:02.734 G Start installing Hangfire SQL objects... -2021-12-14 17:23:03.147 G Hangfire SQL objects installed. -2021-12-14 17:23:03.161 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService' -2021-12-14 17:23:03.162 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. -2021-12-14 17:23:03.163 G Using the following options for Hangfire Server: +2021-12-14 09:01:01.840 G Starting web host. +2021-12-14 09:01:13.951 G User profile is available. Using '"C:\Users\fdw18186887560\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-12-14 09:01:14.108 G Loaded ABP modules: +2021-12-14 09:01:14.111 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-12-14 09:01:14.112 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-12-14 09:01:14.113 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-12-14 09:01:14.114 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-12-14 09:01:14.114 G - Volo.Abp.Domain.AbpDddDomainModule +2021-12-14 09:01:14.115 G - Volo.Abp.Auditing.AbpAuditingModule +2021-12-14 09:01:14.116 G - Volo.Abp.Data.AbpDataModule +2021-12-14 09:01:14.117 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-12-14 09:01:14.118 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-12-14 09:01:14.123 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-12-14 09:01:14.124 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-12-14 09:01:14.125 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-12-14 09:01:14.127 G - Volo.Abp.Json.AbpJsonModule +2021-12-14 09:01:14.128 G - Volo.Abp.Timing.AbpTimingModule +2021-12-14 09:01:14.128 G - Volo.Abp.Localization.AbpLocalizationModule +2021-12-14 09:01:14.129 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-12-14 09:01:14.130 G - Volo.Abp.Settings.AbpSettingsModule +2021-12-14 09:01:14.131 G - Volo.Abp.Security.AbpSecurityModule +2021-12-14 09:01:14.132 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-12-14 09:01:14.133 G - Volo.Abp.Threading.AbpThreadingModule +2021-12-14 09:01:14.136 G - Volo.Abp.EventBus.AbpEventBusModule +2021-12-14 09:01:14.137 G - Volo.Abp.Guids.AbpGuidsModule +2021-12-14 09:01:14.138 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-12-14 09:01:14.139 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-12-14 09:01:14.140 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-12-14 09:01:14.141 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-12-14 09:01:14.142 G - Volo.Abp.Validation.AbpValidationModule +2021-12-14 09:01:14.144 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-12-14 09:01:14.146 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-12-14 09:01:14.147 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-12-14 09:01:14.148 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-12-14 09:01:14.149 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-12-14 09:01:14.154 G - Volo.Abp.Dapper.AbpDapperModule +2021-12-14 09:01:14.156 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-12-14 09:01:14.157 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-12-14 09:01:14.161 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-12-14 09:01:14.162 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-12-14 09:01:14.164 G - Volo.Abp.Http.AbpHttpModule +2021-12-14 09:01:14.167 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-12-14 09:01:14.169 G - Volo.Abp.Minify.AbpMinifyModule +2021-12-14 09:01:14.170 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-12-14 09:01:14.171 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-12-14 09:01:14.173 G - Volo.Abp.Caching.AbpCachingModule +2021-12-14 09:01:14.175 G - Volo.Abp.Serialization.AbpSerializationModule +2021-12-14 09:01:14.178 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-12-14 09:01:14.183 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-12-14 09:01:14.184 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-12-14 09:01:14.185 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-12-14 09:01:14.187 G - Volo.Abp.Features.AbpFeaturesModule +2021-12-14 09:01:14.188 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-12-14 09:01:14.189 G - Volo.Abp.Application.AbpDddApplicationModule +2021-12-14 09:01:14.192 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-12-14 09:01:14.193 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-12-14 09:01:14.198 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-12-14 09:01:14.200 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-12-14 09:01:14.202 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-12-14 09:01:14.204 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-12-14 09:01:14.205 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-12-14 09:01:14.207 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-12-14 09:01:14.215 G - Volo.Abp.UI.AbpUiModule +2021-12-14 09:01:14.217 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-12-14 09:01:14.219 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-12-14 09:01:14.221 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-12-14 09:01:14.223 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-12-14 09:01:14.228 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-12-14 09:01:14.230 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-12-14 09:01:14.231 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-12-14 09:01:14.233 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-12-14 09:01:14.235 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-12-14 09:01:14.237 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-12-14 09:01:14.239 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-12-14 09:01:14.241 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-12-14 09:01:14.250 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-12-14 09:01:14.252 G - Volo.Abp.Autofac.AbpAutofacModule +2021-12-14 09:01:14.254 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-12-14 09:01:14.255 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-12-14 09:01:14.256 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-12-14 09:01:14.258 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-12-14 09:01:14.259 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-12-14 09:01:14.260 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-12-14 09:01:14.261 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-12-14 09:01:14.374 G Start installing Hangfire SQL objects... +2021-12-14 09:01:14.936 G Hangfire SQL objects installed. +2021-12-14 09:01:14.965 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService' +2021-12-14 09:01:14.966 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-12-14 09:01:14.968 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-12-14 17:23:03.193 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService' -2021-12-14 17:23:03.195 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. -2021-12-14 17:23:03.196 G Using the following options for Hangfire Server: +2021-12-14 09:01:15.045 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService' +2021-12-14 09:01:15.047 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-12-14 09:01:15.049 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-12-14 17:23:03.490 G Server sk-20210819huao:30752:0f06e7aa successfully announced in 291.3118 ms -2021-12-14 17:23:03.496 G Server sk-20210819huao:30752:0f06e7aa is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... -2021-12-14 17:23:03.499 G Server sk-20210819huao:30752:9a3112a1 successfully announced in 320.3833 ms -2021-12-14 17:23:03.502 G Server sk-20210819huao:30752:9a3112a1 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... -2021-12-14 17:23:03.513 G Server sk-20210819huao:30752:0f06e7aa all the dispatchers started -2021-12-14 17:23:03.516 G Server sk-20210819huao:30752:9a3112a1 all the dispatchers started -2021-12-14 17:23:04.427 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " -2021-12-14 17:23:04.834 G Executed DbCommand ("81"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:15.490 G Server laptop-v3u07c2o:23568:e48d43d4 successfully announced in 474.4322 ms +2021-12-14 09:01:15.502 G Server laptop-v3u07c2o:23568:e48d43d4 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-12-14 09:01:15.507 G Server laptop-v3u07c2o:23568:a2ed0783 successfully announced in 447.5781 ms +2021-12-14 09:01:15.522 G Server laptop-v3u07c2o:23568:a2ed0783 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-12-14 09:01:15.838 G Server laptop-v3u07c2o:23568:e48d43d4 all the dispatchers started +2021-12-14 09:01:15.901 G Server laptop-v3u07c2o:23568:a2ed0783 all the dispatchers started +2021-12-14 09:01:17.719 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-12-14 09:01:18.285 G Executed DbCommand ("76"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:04.932 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']" +2021-12-14 09:01:18.443 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-12-14 17:23:04.939 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']" +2021-12-14 09:01:18.450 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-12-14 17:23:04.945 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']" +2021-12-14 09:01:18.458 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-12-14 17:23:04.952 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']" +2021-12-14 09:01:18.465 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-12-14 17:23:04.960 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']" +2021-12-14 09:01:18.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-12-14 17:23:04.967 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']" +2021-12-14 09:01:18.491 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-12-14 17:23:04.978 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']" +2021-12-14 09:01:18.502 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-12-14 17:23:04.989 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.513 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-12-14 17:23:04.997 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']" +2021-12-14 09:01:18.524 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-12-14 17:23:05.003 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']" +2021-12-14 09:01:18.542 G Executed DbCommand ("10"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.010 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']" +2021-12-14 09:01:18.550 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-12-14 17:23:05.024 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.557 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-12-14 17:23:05.031 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']" +2021-12-14 09:01:18.580 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-12-14 17:23:05.040 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']" +2021-12-14 09:01:18.587 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-12-14 17:23:05.046 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']" +2021-12-14 09:01:18.605 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-12-14 17:23:05.071 G Executed DbCommand ("19"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.620 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-12-14 17:23:05.077 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']" +2021-12-14 09:01:18.629 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-12-14 17:23:05.088 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']" +2021-12-14 09:01:18.636 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-12-14 17:23:05.100 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.646 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.106 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']" +2021-12-14 09:01:18.664 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-12-14 17:23:05.119 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.671 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-12-14 17:23:05.128 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']" +2021-12-14 09:01:18.689 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-12-14 17:23:05.144 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.701 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-12-14 17:23:05.153 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.711 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-12-14 17:23:05.161 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']" +2021-12-14 09:01:18.721 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-12-14 17:23:05.170 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']" +2021-12-14 09:01:18.737 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.183 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']" +2021-12-14 09:01:18.747 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-12-14 17:23:05.190 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']" +2021-12-14 09:01:18.754 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-12-14 17:23:05.200 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.766 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-12-14 17:23:05.207 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']" +2021-12-14 09:01:18.780 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.214 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']" +2021-12-14 09:01:18.788 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-12-14 17:23:05.222 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']" +2021-12-14 09:01:18.801 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-12-14 17:23:05.232 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']" +2021-12-14 09:01:18.821 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-12-14 17:23:05.241 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']" +2021-12-14 09:01:18.841 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-12-14 17:23:05.248 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']" +2021-12-14 09:01:18.850 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-12-14 17:23:05.258 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']" +2021-12-14 09:01:18.858 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-12-14 17:23:05.265 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']" +2021-12-14 09:01:18.866 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-12-14 17:23:05.277 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.888 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-12-14 17:23:05.285 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']" +2021-12-14 09:01:18.911 G Executed DbCommand ("12"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.294 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']" +2021-12-14 09:01:18.919 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-12-14 17:23:05.311 G Executed DbCommand ("14"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.933 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-12-14 17:23:05.333 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:18.941 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-12-14 17:23:05.343 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']" +2021-12-14 09:01:18.950 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-12-14 17:23:05.357 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']" +2021-12-14 09:01:18.956 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-12-14 17:23:05.371 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']" +2021-12-14 09:01:18.968 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-12-14 17:23:05.378 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']" +2021-12-14 09:01:18.976 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-12-14 17:23:05.387 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']" +2021-12-14 09:01:18.984 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-12-14 17:23:05.393 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']" +2021-12-14 09:01:19.009 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-12-14 17:23:05.403 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']" +2021-12-14 09:01:19.018 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-12-14 17:23:05.410 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']" +2021-12-14 09:01:19.036 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-12-14 17:23:05.421 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']" +2021-12-14 09:01:19.047 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-12-14 17:23:05.442 G Executed DbCommand ("17"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:19.061 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-12-14 17:23:05.450 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']" +2021-12-14 09:01:19.074 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-12-14 17:23:05.457 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']" +2021-12-14 09:01:19.083 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-12-14 17:23:05.469 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:19.090 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-12-14 17:23:05.484 G Executed DbCommand ("12"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:19.102 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-12-14 17:23:05.494 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']" +2021-12-14 09:01:19.111 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-12-14 17:23:05.501 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']" +2021-12-14 09:01:19.121 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-12-14 17:23:05.513 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']" +2021-12-14 09:01:19.134 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-12-14 17:23:05.520 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']" +2021-12-14 09:01:19.145 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-12-14 17:23:05.529 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']" +2021-12-14 09:01:19.157 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-12-14 17:23:05.536 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']" +2021-12-14 09:01:19.187 G Executed DbCommand ("10"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.543 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']" +2021-12-14 09:01:19.204 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-12-14 17:23:05.550 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']" +2021-12-14 09:01:19.213 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-12-14 17:23:05.561 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']" +2021-12-14 09:01:19.225 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-12-14 17:23:05.582 G Executed DbCommand ("18"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:19.236 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-12-14 17:23:05.591 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']" +2021-12-14 09:01:19.250 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-12-14 17:23:05.598 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']" +2021-12-14 09:01:19.383 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-12-14 17:23:05.612 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']" +2021-12-14 09:01:19.600 G Executed DbCommand ("65"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.622 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']" +2021-12-14 09:01:19.615 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-12-14 17:23:05.629 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']" +2021-12-14 09:01:19.624 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-12-14 17:23:05.638 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']" +2021-12-14 09:01:19.659 G Executed DbCommand ("25"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.645 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']" +2021-12-14 09:01:19.756 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-12-14 17:23:05.655 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']" +2021-12-14 09:01:19.883 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-12-14 17:23:05.663 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']" +2021-12-14 09:01:19.911 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.671 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']" +2021-12-14 09:01:19.919 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-12-14 17:23:05.680 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']" +2021-12-14 09:01:19.933 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-12-14 17:23:05.694 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']" +2021-12-14 09:01:19.944 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-12-14 17:23:05.711 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:19.953 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-12-14 17:23:05.720 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:19.963 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-12-14 17:23:05.727 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']" +2021-12-14 09:01:19.974 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-12-14 17:23:05.734 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']" +2021-12-14 09:01:19.981 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-12-14 17:23:05.741 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']" +2021-12-14 09:01:19.987 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-12-14 17:23:05.750 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']" +2021-12-14 09:01:19.996 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-12-14 17:23:05.757 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']" +2021-12-14 09:01:20.006 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.765 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']" +2021-12-14 09:01:20.016 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-12-14 17:23:05.779 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.023 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-12-14 17:23:05.787 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']" +2021-12-14 09:01:20.032 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-12-14 17:23:05.798 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']" +2021-12-14 09:01:20.038 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.805 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']" +2021-12-14 09:01:20.056 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" ""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] FROM [AbpPermissionGrants] AS [a] WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) ORDER BY [a].[Id]" -2021-12-14 17:23:05.865 G Executed DbCommand ("56"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.067 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-12-14 17:23:05.912 G Executed DbCommand ("40"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.078 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-12-14 17:23:05.933 G Executed DbCommand ("12"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.089 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-12-14 17:23:05.954 G Executed DbCommand ("15"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.098 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-12-14 17:23:05.961 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']" +2021-12-14 09:01:20.110 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-12-14 17:23:05.969 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']" +2021-12-14 09:01:20.117 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-12-14 17:23:05.976 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']" +2021-12-14 09:01:20.162 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-12-14 17:23:05.991 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.170 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-12-14 17:23:06.000 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']" +2021-12-14 09:01:20.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-12-14 17:23:06.007 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']" +2021-12-14 09:01:20.188 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-12-14 17:23:06.022 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.195 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-12-14 17:23:06.193 G Initialized all ABP modules. -2021-12-14 17:23:06.235 G Now listening on: "http://localhost:44378" -2021-12-14 17:23:06.236 G Application started. Press Ctrl+C to shut down. -2021-12-14 17:23:06.237 G Hosting environment: "Development" -2021-12-14 17:23:06.238 G Content root path: "C:\Users\Administrator\Source\Repos\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" -2021-12-14 17:23:06.829 G Request starting HTTP/1.1 GET http://localhost:44378/ - - -2021-12-14 17:23:07.396 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " -2021-12-14 17:23:07.433 G Executed DbCommand ("13"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:20.645 G Initialized all ABP modules. +2021-12-14 09:01:20.822 G Now listening on: "http://localhost:44378" +2021-12-14 09:01:20.825 G Application started. Press Ctrl+C to shut down. +2021-12-14 09:01:20.828 G Hosting environment: "Development" +2021-12-14 09:01:20.830 G Content root path: "D:\2020工作文件\派格-结算系统\派格源代码\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-12-14 09:01:23.288 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-12-14 09:01:24.388 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-12-14 09:01:24.414 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-12-14 17:23:07.569 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " -2021-12-14 17:23:07.578 G Executed DbCommand ("5"ms) [Parameters=["@__providerName_0='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +2021-12-14 09:01:25.067 G Entity Framework Core "5.0.8" initialized '"SettingManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-12-14 09:01:25.076 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-12-14 17:23:07.748 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' -2021-12-14 17:23:07.825 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-12-14 17:23:07.881 G Executing action method "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" - Validation state: Valid -2021-12-14 17:23:07.893 G Executed action method "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)", returned result "Microsoft.AspNetCore.Mvc.RedirectResult" in 0.571ms. -2021-12-14 17:23:07.906 G Executing RedirectResult, redirecting to "/swagger". -2021-12-14 17:23:07.920 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 78.5214ms -2021-12-14 17:23:07.924 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' -2021-12-14 17:23:07.949 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1122.7761ms -2021-12-14 17:23:07.959 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - -2021-12-14 17:23:08.043 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 83.8114ms -2021-12-14 17:23:08.257 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - -2021-12-14 17:23:09.882 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1624.9313ms -2021-12-14 17:24:14.533 G Request starting HTTP/1.1 GET http://localhost:44378/api/settleaccount/ReportMakeService/UnsettledDetailReportService-Make?version=202110 - - -2021-12-14 17:24:14.551 G Executing endpoint '"Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.UnsettledDetailReportServiceMake (SettleAccount.Application)"' -2021-12-14 17:24:14.597 G Route matched with "{action = \"UnsettledDetailReportServiceMake\", controller = \"Report\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] UnsettledDetailReportServiceMake(System.String, System.String, System.String, System.String, System.String, System.String, System.String)" on controller "Win.Sfs.SettleAccount.Reports.ReportServices.ReportService" ("SettleAccount.Application"). -2021-12-14 17:24:15.496 G Executing action method "Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.UnsettledDetailReportServiceMake (SettleAccount.Application)" - Validation state: Valid -2021-12-14 17:24:16.562 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-12-14 17:24:16.565 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-12-14 17:24:16.566 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-12-14 17:24:16.568 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-12-14 17:24:16.569 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-12-14 17:24:16.570 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-12-14 17:24:16.571 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-12-14 17:24:16.573 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-12-14 17:24:16.574 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-12-14 17:24:16.576 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-12-14 17:24:16.577 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-12-14 17:24:16.578 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-12-14 17:24:16.584 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-12-14 17:24:16.586 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-12-14 17:24:16.587 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-12-14 17:24:16.589 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-12-14 17:24:16.590 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-12-14 17:24:16.591 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-12-14 17:24:16.593 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-12-14 17:24:16.594 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-12-14 17:24:16.595 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-12-14 17:24:16.596 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-12-14 17:24:16.597 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-12-14 17:24:16.599 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-12-14 17:24:16.600 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-12-14 17:24:16.601 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-12-14 17:24:16.602 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-12-14 17:24:16.603 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-12-14 17:24:16.608 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-12-14 17:24:16.613 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-12-14 17:24:16.615 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-12-14 17:24:16.617 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-12-14 17:24:16.618 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-12-14 17:24:16.620 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-12-14 17:24:16.622 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-12-14 17:24:16.624 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-12-14 17:24:16.626 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-12-14 17:24:16.627 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-12-14 17:24:16.629 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-12-14 17:24:16.631 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-12-14 17:24:16.632 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-12-14 17:24:16.634 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-12-14 17:24:16.635 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-12-14 17:24:16.637 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-12-14 17:24:16.644 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-12-14 17:24:16.646 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-12-14 17:24:16.648 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-12-14 17:24:16.649 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-12-14 17:24:16.650 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-12-14 17:24:16.651 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-12-14 17:24:16.652 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-12-14 17:24:16.652 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-12-14 17:24:16.653 G No type was specified for the decimal property '"Qty"' on entity type '"KanBanSettle"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.655 G No type was specified for the decimal property '"Amt"' on entity type '"ScrapClaims"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.656 G No type was specified for the decimal property '"Qty"' on entity type '"ScrapClaims"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.657 G No type was specified for the decimal property '"AmountNoTax"' on entity type '"SparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.658 G No type was specified for the decimal property '"InvoicedQty"' on entity type '"SparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.659 G No type was specified for the decimal property '"PurchasePriceNoTax"' on entity type '"SparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.660 G No type was specified for the decimal property '"ReceiptQty"' on entity type '"SparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.661 G No type was specified for the decimal property '"TaxRate"' on entity type '"SparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.662 G No type was specified for the decimal property '"Qty"' on entity type '"WMSKanBanSettle"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.663 G No type was specified for the decimal property '"WMSDeliveryQty"' on entity type '"WMSKanBanSettle"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.663 G No type was specified for the decimal property '"AmountNoTax"' on entity type '"WMSSparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.664 G No type was specified for the decimal property '"InvoicedQty"' on entity type '"WMSSparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.665 G No type was specified for the decimal property '"PurchasePriceNoTax"' on entity type '"WMSSparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.666 G No type was specified for the decimal property '"ReceiptQty"' on entity type '"WMSSparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.667 G No type was specified for the decimal property '"TaxRate"' on entity type '"WMSSparePart"'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType()', specify precision and scale using 'HasPrecision()' or configure a value converter using 'HasConversion()'. -2021-12-14 17:24:16.668 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-12-14 17:24:16.669 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-12-14 17:24:16.670 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-12-14 17:24:16.675 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-12-14 17:24:16.677 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-12-14 17:24:16.678 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-12-14 17:24:16.679 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-12-14 17:24:16.680 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-12-14 17:24:16.681 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-12-14 17:24:16.682 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-12-14 17:24:16.683 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-12-14 17:24:16.684 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-12-14 17:24:16.686 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-12-14 17:24:16.688 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-12-14 17:24:16.690 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-12-14 17:24:16.692 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-12-14 17:24:16.694 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-12-14 17:24:16.696 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-12-14 17:24:16.698 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-12-14 17:24:16.700 G No type was specified for the decimal property '"CP7ScrapQty"' 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-12-14 17:24:16.701 G No type was specified for the decimal property '"ClaimQty"' 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-12-14 17:24:16.713 G No type was specified for the decimal property '"DiffPrice"' 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-12-14 17:24:16.718 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-12-14 17:24:16.725 G No type was specified for the decimal property '"InvoiceAmt"' 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-12-14 17:24:16.727 G No type was specified for the decimal property '"InvoicePrice"' 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-12-14 17:24:16.729 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-12-14 17:24:16.731 G No type was specified for the decimal property '"SalePrice"' 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-12-14 17:24:16.733 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-12-14 17:24:16.738 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-12-14 17:24:16.740 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-12-14 17:24:16.742 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-12-14 17:24:16.745 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-12-14 17:24:16.747 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-12-14 17:24:16.748 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-12-14 17:24:16.753 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-12-14 17:24:16.755 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-12-14 17:24:16.757 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-12-14 17:24:16.758 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-12-14 17:24:16.760 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-12-14 17:24:16.761 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-12-14 17:24:16.762 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-12-14 17:24:16.763 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-12-14 17:24:16.764 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-12-14 17:24:16.768 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-12-14 17:24:16.772 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-12-14 17:24:16.774 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-12-14 17:24:16.775 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-12-14 17:24:16.776 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-12-14 17:24:16.777 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-12-14 17:24:16.778 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-12-14 17:24:16.779 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-12-14 17:24:16.783 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-12-14 17:24:16.867 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " -2021-12-14 17:24:17.177 G Executed DbCommand ("16"ms) [Parameters=["@p0='?' (DbType = Guid), @p1='?' (Size = 50), @p2='?' (DbType = Guid), @p3='?' (Size = 50), @p4='?' (DbType = DateTime2), @p5='?' (Size = 50), @p6='?' (DbType = Guid), @p7='?' (DbType = Guid), @p8='?' (DbType = DateTime2), @p9='?' (Size = 500), @p10='?' (Size = 50), @p11='?' (DbType = Boolean), @p12='?' (Size = 4000), @p13='?' (Size = 4000), @p14='?' (Size = 500), @p15='?' (DbType = DateTime2), @p16='?' (DbType = Guid), @p17='?' (Size = 50), @p18='?' (Size = 500), @p19='?' (Size = 500), @p20='?' (Size = 4000), @p21='?' (Size = 300), @p22='?' (Size = 4000), @p23='?' (Size = 50), @p24='?' (Size = 4000)"], CommandType='Text', CommandTimeout='1800']" -""SET NOCOUNT ON; -INSERT INTO [Set_TaskJob] ([Id], [ActionName], [BranchId], [ConcurrencyStamp], [CreationTime], [Creator], [CreatorId], [DeleterId], [DeletionTime], [DownFileName], [Email], [Enabled], [Error], [ExtraProperties], [FileName], [LastModificationTime], [LastModifierId], [Name], [RealDownFileName], [RealFileName], [Remark], [ServiceName], [State], [TaskId], [Type]) -VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14, @p15, @p16, @p17, @p18, @p19, @p20, @p21, @p22, @p23, @p24); -SELECT [IsDeleted] -FROM [Set_TaskJob] -WHERE @@ROWCOUNT = 1 AND [Id] = @p0;" -2021-12-14 17:24:17.301 G Executed DbCommand ("6"ms) [Parameters=["@__input_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='1800']" -""SELECT TOP(1) [s].[Id], [s].[ActionName], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[Creator], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[DownFileName], [s].[Email], [s].[Enabled], [s].[Error], [s].[ExtraProperties], [s].[FileName], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[Name], [s].[RealDownFileName], [s].[RealFileName], [s].[Remark], [s].[ServiceName], [s].[State], [s].[TaskId], [s].[Type] -FROM [Set_TaskJob] AS [s] -WHERE [s].[Id] = @__input_Id_0" -2021-12-14 17:24:17.608 G Executed DbCommand ("4"ms) [Parameters=["@__id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='1800']" -""SELECT TOP(1) [s].[Id], [s].[ActionName], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[Creator], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[DownFileName], [s].[Email], [s].[Enabled], [s].[Error], [s].[ExtraProperties], [s].[FileName], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[Name], [s].[RealDownFileName], [s].[RealFileName], [s].[Remark], [s].[ServiceName], [s].[State], [s].[TaskId], [s].[Type] -FROM [Set_TaskJob] AS [s] -WHERE [s].[Id] = @__id_0 -ORDER BY [s].[Id]" -2021-12-14 17:24:17.930 G Executed DbCommand ("236"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" -""SELECT TOP 0 T.[Id], T.[ActionName], T.[BranchId], T.[ConcurrencyStamp], T.[CreationTime], T.[Creator], T.[CreatorId], T.[DeleterId], T.[DeletionTime], T.[DownFileName], T.[Email], T.[Enabled], T.[Error], T.[ExtraProperties], T.[FileName], T.[IsDeleted], T.[LastModificationTime], T.[LastModifierId], T.[Name], T.[RealDownFileName], T.[RealFileName], T.[Remark], T.[ServiceName], T.[State], T.[TaskId], T.[Type] INTO [dbo].[Set_TaskJobTemp212b2a57] FROM [dbo].[Set_TaskJob] AS T LEFT JOIN [dbo].[Set_TaskJob] AS Source ON 1 = 0;" -2021-12-14 17:24:18.140 G Executed DbCommand ("49"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" -""MERGE [dbo].[Set_TaskJob] WITH (HOLDLOCK) AS T USING (SELECT TOP 1 * FROM [dbo].[Set_TaskJobTemp212b2a57] ORDER BY [Id]) AS S ON T.[Id] = S.[Id] WHEN MATCHED AND EXISTS (SELECT S.[Id], S.[ActionName], S.[BranchId], S.[ConcurrencyStamp], S.[CreationTime], S.[Creator], S.[CreatorId], S.[DeleterId], S.[DeletionTime], S.[DownFileName], S.[Email], S.[Enabled], S.[Error], S.[ExtraProperties], S.[FileName], S.[IsDeleted], S.[LastModificationTime], S.[LastModifierId], S.[Name], S.[RealDownFileName], S.[RealFileName], S.[Remark], S.[ServiceName], S.[State], S.[TaskId], S.[Type] EXCEPT SELECT T.[Id], T.[ActionName], T.[BranchId], T.[ConcurrencyStamp], T.[CreationTime], T.[Creator], T.[CreatorId], T.[DeleterId], T.[DeletionTime], T.[DownFileName], T.[Email], T.[Enabled], T.[Error], T.[ExtraProperties], T.[FileName], T.[IsDeleted], T.[LastModificationTime], T.[LastModifierId], T.[Name], T.[RealDownFileName], T.[RealFileName], T.[Remark], T.[ServiceName], T.[State], T.[TaskId], T.[Type]) THEN UPDATE SET T.[ActionName] = S.[ActionName], T.[BranchId] = S.[BranchId], T.[ConcurrencyStamp] = S.[ConcurrencyStamp], T.[CreationTime] = S.[CreationTime], T.[Creator] = S.[Creator], T.[CreatorId] = S.[CreatorId], T.[DeleterId] = S.[DeleterId], T.[DeletionTime] = S.[DeletionTime], T.[DownFileName] = S.[DownFileName], T.[Email] = S.[Email], T.[Enabled] = S.[Enabled], T.[Error] = S.[Error], T.[ExtraProperties] = S.[ExtraProperties], T.[FileName] = S.[FileName], T.[IsDeleted] = S.[IsDeleted], T.[LastModificationTime] = S.[LastModificationTime], T.[LastModifierId] = S.[LastModifierId], T.[Name] = S.[Name], T.[RealDownFileName] = S.[RealDownFileName], T.[RealFileName] = S.[RealFileName], T.[Remark] = S.[Remark], T.[ServiceName] = S.[ServiceName], T.[State] = S.[State], T.[TaskId] = S.[TaskId], T.[Type] = S.[Type];" -2021-12-14 17:24:18.221 G Executed DbCommand ("77"ms) [Parameters=[""], CommandType='Text', CommandTimeout='1800']" -""IF OBJECT_ID ('[dbo].[Set_TaskJobTemp212b2a57]', 'U') IS NOT NULL DROP TABLE [dbo].[Set_TaskJobTemp212b2a57]" -2021-12-14 17:24:18.244 G Executed DbCommand ("7"ms) [Parameters=["@__id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='1800']" -""SELECT TOP(1) [s].[Id], [s].[ActionName], [s].[BranchId], [s].[ConcurrencyStamp], [s].[CreationTime], [s].[Creator], [s].[CreatorId], [s].[DeleterId], [s].[DeletionTime], [s].[DownFileName], [s].[Email], [s].[Enabled], [s].[Error], [s].[ExtraProperties], [s].[FileName], [s].[IsDeleted], [s].[LastModificationTime], [s].[LastModifierId], [s].[Name], [s].[RealDownFileName], [s].[RealFileName], [s].[Remark], [s].[ServiceName], [s].[State], [s].[TaskId], [s].[Type] -FROM [Set_TaskJob] AS [s] -WHERE [s].[Id] = @__id_0" -2021-12-14 17:24:18.250 G Executed action method "Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.UnsettledDetailReportServiceMake (SettleAccount.Application)", returned result "Microsoft.AspNetCore.Mvc.ObjectResult" in 2751.5551ms. -2021-12-14 17:24:18.290 G Executed DbCommand ("8"ms) [Parameters=["@p3='?' (DbType = Guid), @p0='?' (Size = 50), @p4='?' (Size = 50), @p1='?' (DbType = DateTime2), @p2='?' (Size = 50)"], CommandType='Text', CommandTimeout='1800']" -""SET NOCOUNT ON; -UPDATE [Set_TaskJob] SET [ConcurrencyStamp] = @p0, [LastModificationTime] = @p1, [TaskId] = @p2 -WHERE [Id] = @p3 AND [ConcurrencyStamp] = @p4; -SELECT @@ROWCOUNT;" -2021-12-14 17:24:18.333 G Executing "ObjectResult", writing value of type '"System.String"'. -2021-12-14 17:24:18.339 G Executed action "Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.UnsettledDetailReportServiceMake (SettleAccount.Application)" in 3739.1114ms -2021-12-14 17:24:18.341 G Executed endpoint '"Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.UnsettledDetailReportServiceMake (SettleAccount.Application)"' -2021-12-14 17:24:18.347 G Request finished HTTP/1.1 GET http://localhost:44378/api/settleaccount/ReportMakeService/UnsettledDetailReportService-Make?version=202110 - - - 200 - text/plain;+charset=utf-8 3814.6312ms -2021-12-14 17:24:34.183 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " -2021-12-14 17:24:45.055 G Entity Framework Core "5.0.8" initialized '"SettleAccountDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-12-14 09:01:25.244 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-12-14 09:01:25.344 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-12-14 09:01:25.432 G Executing RedirectResult, redirecting to "/swagger". +2021-12-14 09:01:25.445 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 41.1621ms +2021-12-14 09:01:25.506 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-12-14 09:01:25.542 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 2257.2489ms +2021-12-14 09:01:25.575 G Request starting HTTP/1.1 GET http://localhost:44378/swagger - - +2021-12-14 09:01:25.582 G Request finished HTTP/1.1 GET http://localhost:44378/swagger - - - 301 0 - 7.3442ms +2021-12-14 09:01:25.588 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-12-14 09:01:25.700 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 111.9571ms +2021-12-14 09:01:25.750 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-standalone-preset.js - - +2021-12-14 09:01:25.756 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-bundle.js - - +2021-12-14 09:01:25.756 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui.css - - +2021-12-14 09:01:25.900 G Sending file. Request path: '"/swagger-ui-standalone-preset.js"'. Physical path: '"N/A"' +2021-12-14 09:01:25.900 G Sending file. Request path: '"/swagger-ui.css"'. Physical path: '"N/A"' +2021-12-14 09:01:25.908 G Sending file. Request path: '"/swagger-ui-bundle.js"'. Physical path: '"N/A"' +2021-12-14 09:01:25.915 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-standalone-preset.js - - - 200 336841 application/javascript 165.4393ms +2021-12-14 09:01:25.952 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui.css - - - 200 143410 text/css 195.7004ms +2021-12-14 09:01:25.999 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/swagger-ui-bundle.js - - - 200 1097461 application/javascript 243.0948ms +2021-12-14 09:01:26.179 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-12-14 09:01:28.100 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1921.5498ms +2021-12-14 09:05:51.096 G Request starting HTTP/1.1 GET http://localhost:44378/api/settleaccount/ReportMakeService/InvoiceSettledDiff-Make?version=202109&customerCode=%5B%22%E5%A4%96%E8%B4%AD%E4%BB%B6-FAW%C2%A0CAR%C2%A0%C2%A0C105%E9%97%A8%E6%9D%BF%C2%A0%22%2C%22%E6%88%90%E5%93%81-%E7%BA%A2%E6%97%97E111%E6%9F%B1%E6%8A%A4%E6%9D%BF%22%2C%22%E7%84%8A%E6%8E%A5%E5%89%8D%E5%8D%8A%E6%88%90%E5%93%81-AUDI%20C7%22%2C%22%E6%9F%B1%E6%8A%A4%E6%9D%BF%E6%88%90%E5%93%81-MODEL%20C%22%2C%22%E9%97%A8%E6%9D%BF%E6%88%90%E5%93%81-AUDI%20Q5-PA%22%5D - - +2021-12-14 09:05:51.162 G Executing endpoint '"Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.InvoiceSettledDiffMake (SettleAccount.Application)"' +2021-12-14 09:05:51.194 G Route matched with "{action = \"InvoiceSettledDiffMake\", controller = \"Report\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] InvoiceSettledDiffMake(System.String, System.String, System.String, System.String, System.String, System.String, System.String)" on controller "Win.Sfs.SettleAccount.Reports.ReportServices.ReportService" ("SettleAccount.Application"). +2021-12-14 09:09:02.755 G Starting web host. +2021-12-14 09:09:12.566 G User profile is available. Using '"C:\Users\fdw18186887560\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2021-12-14 09:09:12.726 G Loaded ABP modules: +2021-12-14 09:09:12.727 G - Win.Sfs.SettleAccount.SettleAccountHttpApiHostModule +2021-12-14 09:09:12.728 G - Win.Sfs.SettleAccount.SettleAccountApplicationModule +2021-12-14 09:09:12.729 G - Win.Sfs.SettleAccount.SettleAccountJobModule +2021-12-14 09:09:12.730 G - Win.Sfs.SettleAccount.SettleAccountDomainModule +2021-12-14 09:09:12.730 G - Volo.Abp.Domain.AbpDddDomainModule +2021-12-14 09:09:12.731 G - Volo.Abp.Auditing.AbpAuditingModule +2021-12-14 09:09:12.732 G - Volo.Abp.Data.AbpDataModule +2021-12-14 09:09:12.733 G - Volo.Abp.ObjectExtending.AbpObjectExtendingModule +2021-12-14 09:09:12.734 G - Volo.Abp.Localization.AbpLocalizationAbstractionsModule +2021-12-14 09:09:12.734 G - Volo.Abp.Validation.AbpValidationAbstractionsModule +2021-12-14 09:09:12.736 G - Volo.Abp.Uow.AbpUnitOfWorkModule +2021-12-14 09:09:12.737 G - Volo.Abp.EventBus.Abstractions.AbpEventBusAbstractionsModule +2021-12-14 09:09:12.737 G - Volo.Abp.Json.AbpJsonModule +2021-12-14 09:09:12.738 G - Volo.Abp.Timing.AbpTimingModule +2021-12-14 09:09:12.740 G - Volo.Abp.Localization.AbpLocalizationModule +2021-12-14 09:09:12.741 G - Volo.Abp.VirtualFileSystem.AbpVirtualFileSystemModule +2021-12-14 09:09:12.742 G - Volo.Abp.Settings.AbpSettingsModule +2021-12-14 09:09:12.743 G - Volo.Abp.Security.AbpSecurityModule +2021-12-14 09:09:12.744 G - Volo.Abp.MultiTenancy.AbpMultiTenancyModule +2021-12-14 09:09:12.745 G - Volo.Abp.Threading.AbpThreadingModule +2021-12-14 09:09:12.746 G - Volo.Abp.EventBus.AbpEventBusModule +2021-12-14 09:09:12.747 G - Volo.Abp.Guids.AbpGuidsModule +2021-12-14 09:09:12.748 G - Volo.Abp.ObjectMapping.AbpObjectMappingModule +2021-12-14 09:09:12.750 G - Volo.Abp.ExceptionHandling.AbpExceptionHandlingModule +2021-12-14 09:09:12.755 G - Volo.Abp.Specifications.AbpSpecificationsModule +2021-12-14 09:09:12.756 G - Win.Sfs.SettleAccount.SettleAccountDomainSharedModule +2021-12-14 09:09:12.757 G - Volo.Abp.Validation.AbpValidationModule +2021-12-14 09:09:12.758 G - Win.Sfs.SettleAccount.SettleAccountApplicationContractsModule +2021-12-14 09:09:12.759 G - Volo.Abp.Application.AbpDddApplicationContractsModule +2021-12-14 09:09:12.760 G - Volo.Abp.Authorization.AbpAuthorizationModule +2021-12-14 09:09:12.761 G - Volo.Abp.Authorization.AbpAuthorizationAbstractionsModule +2021-12-14 09:09:12.761 G - Volo.Abp.AutoMapper.AbpAutoMapperModule +2021-12-14 09:09:12.763 G - Volo.Abp.Dapper.AbpDapperModule +2021-12-14 09:09:12.763 G - Volo.Abp.EntityFrameworkCore.AbpEntityFrameworkCoreModule +2021-12-14 09:09:12.764 G - Win.Abp.Snowflakes.AbpSnowflakeGeneratorModule +2021-12-14 09:09:12.768 G - Volo.Abp.Http.Client.IdentityModel.AbpHttpClientIdentityModelModule +2021-12-14 09:09:12.769 G - Volo.Abp.Http.Client.AbpHttpClientModule +2021-12-14 09:09:12.770 G - Volo.Abp.Http.AbpHttpModule +2021-12-14 09:09:12.770 G - Volo.Abp.Http.AbpHttpAbstractionsModule +2021-12-14 09:09:12.771 G - Volo.Abp.Minify.AbpMinifyModule +2021-12-14 09:09:12.772 G - Volo.Abp.Castle.AbpCastleCoreModule +2021-12-14 09:09:12.773 G - Volo.Abp.IdentityModel.AbpIdentityModelModule +2021-12-14 09:09:12.774 G - Volo.Abp.Caching.AbpCachingModule +2021-12-14 09:09:12.775 G - Volo.Abp.Serialization.AbpSerializationModule +2021-12-14 09:09:12.776 G - Volo.Abp.Identity.AbpIdentityHttpApiClientModule +2021-12-14 09:09:12.777 G - Volo.Abp.Identity.AbpIdentityApplicationContractsModule +2021-12-14 09:09:12.778 G - Volo.Abp.Identity.AbpIdentityDomainSharedModule +2021-12-14 09:09:12.779 G - Volo.Abp.Users.AbpUsersDomainSharedModule +2021-12-14 09:09:12.788 G - Volo.Abp.Features.AbpFeaturesModule +2021-12-14 09:09:12.802 G - Volo.Abp.Users.AbpUsersAbstractionModule +2021-12-14 09:09:12.803 G - Volo.Abp.Application.AbpDddApplicationModule +2021-12-14 09:09:12.813 G - Volo.Abp.GlobalFeatures.AbpGlobalFeaturesModule +2021-12-14 09:09:12.818 G - Volo.Abp.PermissionManagement.AbpPermissionManagementApplicationContractsModule +2021-12-14 09:09:12.831 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainSharedModule +2021-12-14 09:09:12.832 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcModule +2021-12-14 09:09:12.871 G - Volo.Abp.AspNetCore.AbpAspNetCoreModule +2021-12-14 09:09:12.873 G - Volo.Abp.ApiVersioning.AbpApiVersioningAbstractionsModule +2021-12-14 09:09:12.882 G - Volo.Abp.AspNetCore.Mvc.AbpAspNetCoreMvcContractsModule +2021-12-14 09:09:12.883 G - Volo.Abp.UI.Navigation.AbpUiNavigationModule +2021-12-14 09:09:12.885 G - Volo.Abp.UI.AbpUiModule +2021-12-14 09:09:12.888 G - Win.Sfs.SettleAccount.SettleAccountEntityFrameworkCoreModule +2021-12-14 09:09:12.889 G - Volo.Abp.PermissionManagement.EntityFrameworkCore.AbpPermissionManagementEntityFrameworkCoreModule +2021-12-14 09:09:12.895 G - Volo.Abp.PermissionManagement.AbpPermissionManagementDomainModule +2021-12-14 09:09:12.897 G - Volo.Abp.SettingManagement.EntityFrameworkCore.AbpSettingManagementEntityFrameworkCoreModule +2021-12-14 09:09:12.922 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainModule +2021-12-14 09:09:12.930 G - Volo.Abp.SettingManagement.AbpSettingManagementDomainSharedModule +2021-12-14 09:09:12.932 G - Volo.Abp.AuditLogging.EntityFrameworkCore.AbpAuditLoggingEntityFrameworkCoreModule +2021-12-14 09:09:12.934 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainModule +2021-12-14 09:09:12.939 G - Volo.Abp.AuditLogging.AbpAuditLoggingDomainSharedModule +2021-12-14 09:09:12.949 G - Volo.Abp.TenantManagement.EntityFrameworkCore.AbpTenantManagementEntityFrameworkCoreModule +2021-12-14 09:09:12.953 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainModule +2021-12-14 09:09:12.955 G - Volo.Abp.TenantManagement.AbpTenantManagementDomainSharedModule +2021-12-14 09:09:12.970 G - Win.Sfs.SettleAccount.SettleAccountHttpApiModule +2021-12-14 09:09:12.971 G - Volo.Abp.Autofac.AbpAutofacModule +2021-12-14 09:09:13.002 G - Volo.Abp.EntityFrameworkCore.SqlServer.AbpEntityFrameworkCoreSqlServerModule +2021-12-14 09:09:13.003 G - Volo.Abp.AspNetCore.Serilog.AbpAspNetCoreSerilogModule +2021-12-14 09:09:13.023 G - Volo.Abp.BlobStoring.AbpBlobStoringModule +2021-12-14 09:09:13.031 G - Volo.Abp.BlobStoring.FileSystem.AbpBlobStoringFileSystemModule +2021-12-14 09:09:13.033 G - Volo.Abp.BackgroundJobs.Hangfire.AbpBackgroundJobsHangfireModule +2021-12-14 09:09:13.037 G - Volo.Abp.BackgroundJobs.AbpBackgroundJobsAbstractionsModule +2021-12-14 09:09:13.038 G - Volo.Abp.Hangfire.AbpHangfireModule +2021-12-14 09:09:13.156 G Start installing Hangfire SQL objects... +2021-12-14 09:09:13.379 G Hangfire SQL objects installed. +2021-12-14 09:09:13.399 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService' +2021-12-14 09:09:13.401 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-12-14 09:09:13.403 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-12-14 09:09:13.503 G Starting Hangfire Server using job storage: 'SQL Server: 192.168.0.140@SettleAccountService' +2021-12-14 09:09:13.505 G Using the following options for SQL Server job storage: Queue poll interval: 00:00:15. +2021-12-14 09:09:13.507 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-12-14 09:09:13.854 G Server laptop-v3u07c2o:7836:d05c2fc7 successfully announced in 378.6056 ms +2021-12-14 09:09:13.868 G Server laptop-v3u07c2o:7836:d05c2fc7 is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-12-14 09:09:13.901 G Server laptop-v3u07c2o:7836:2a26a47b successfully announced in 385.619 ms +2021-12-14 09:09:13.921 G Server laptop-v3u07c2o:7836:2a26a47b is starting the registered dispatchers: ServerWatchdog, ServerJobCancellationWatcher, ExpirationManager, CountersAggregator, Worker, DelayedJobScheduler, RecurringJobScheduler... +2021-12-14 09:09:14.153 G Server laptop-v3u07c2o:7836:d05c2fc7 all the dispatchers started +2021-12-14 09:09:14.223 G Server laptop-v3u07c2o:7836:2a26a47b all the dispatchers started +2021-12-14 09:09:16.009 G Entity Framework Core "5.0.8" initialized '"PermissionManagementDbContext"' using provider '"Microsoft.EntityFrameworkCore.SqlServer"' with options: "QuerySplittingBehavior=SplitQuery " +2021-12-14 09:09:16.622 G Executed DbCommand ("67"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:16.782 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-12-14 09:09:16.795 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-12-14 09:09:16.817 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-12-14 09:09:16.829 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-12-14 09:09:16.874 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-12-14 09:09:16.916 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-12-14 09:09:16.935 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-12-14 09:09:16.975 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-12-14 09:09:17.008 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-12-14 09:09:17.058 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-12-14 09:09:17.082 G Executed DbCommand ("10"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.116 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-12-14 09:09:17.137 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-12-14 09:09:17.179 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-12-14 09:09:17.208 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-12-14 09:09:17.249 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-12-14 09:09:17.260 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-12-14 09:09:17.268 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-12-14 09:09:17.293 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-12-14 09:09:17.316 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-12-14 09:09:17.341 G Executed DbCommand ("10"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.361 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.395 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-12-14 09:09:17.418 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-12-14 09:09:17.469 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.504 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.537 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.582 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-12-14 09:09:17.592 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-12-14 09:09:17.618 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:17.634 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-12-14 09:09:17.656 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-12-14 09:09:17.671 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-12-14 09:09:17.708 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-12-14 09:09:17.728 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-12-14 09:09:17.759 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-12-14 09:09:17.778 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-12-14 09:09:17.787 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-12-14 09:09:17.803 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-12-14 09:09:17.813 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-12-14 09:09:17.834 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-12-14 09:09:17.844 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-12-14 09:09:18.001 G Executed DbCommand ("141"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.013 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-12-14 09:09:18.052 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-12-14 09:09:18.082 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.117 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-12-14 09:09:18.136 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-12-14 09:09:18.160 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-12-14 09:09:18.185 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-12-14 09:09:18.208 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.231 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-12-14 09:09:18.244 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-12-14 09:09:18.261 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-12-14 09:09:18.298 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-12-14 09:09:18.318 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-12-14 09:09:18.343 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-12-14 09:09:18.352 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-12-14 09:09:18.370 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-12-14 09:09:18.383 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.400 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-12-14 09:09:18.415 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.447 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.470 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-12-14 09:09:18.506 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-12-14 09:09:18.522 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-12-14 09:09:18.545 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-12-14 09:09:18.568 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-12-14 09:09:18.599 G Executed DbCommand ("11"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.628 G Executed DbCommand ("9"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.658 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-12-14 09:09:18.700 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-12-14 09:09:18.718 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-12-14 09:09:18.733 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-12-14 09:09:18.750 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-12-14 09:09:18.759 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-12-14 09:09:18.765 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-12-14 09:09:18.810 G Executed DbCommand ("8"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.829 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-12-14 09:09:18.861 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-12-14 09:09:18.888 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-12-14 09:09:18.914 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-12-14 09:09:18.930 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-12-14 09:09:18.968 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:18.989 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-12-14 09:09:19.012 G Executed DbCommand ("13"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:19.030 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-12-14 09:09:19.040 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-12-14 09:09:19.061 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-12-14 09:09:19.086 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-12-14 09:09:19.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-12-14 09:09:19.127 G Executed DbCommand ("1"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:19.140 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-12-14 09:09:19.194 G Executed DbCommand ("13"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:19.218 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-12-14 09:09:19.249 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-12-14 09:09:19.285 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-12-14 09:09:19.330 G Executed DbCommand ("5"ms) [Parameters=["@__ef_filter__p_0='?' (DbType = Boolean), @__name_0='?' (Size = 128), @__providerName_1='?' (Size = 64), @__providerKey_2='?' (Size = 64)"], CommandType='Text', CommandTimeout='30']" +""SELECT TOP(1) [a].[Id], [a].[Name], [a].[ProviderKey], [a].[ProviderName], [a].[TenantId] +FROM [AbpPermissionGrants] AS [a] +WHERE ((@__ef_filter__p_0 = CAST(1 AS bit)) OR [a].[TenantId] IS NULL) AND ((([a].[Name] = @__name_0) AND ([a].[ProviderName] = @__providerName_1)) AND ([a].[ProviderKey] = @__providerKey_2)) +ORDER BY [a].[Id]" +2021-12-14 09:09:19.380 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-12-14 09:09:19.408 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-12-14 09:09:19.432 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-12-14 09:09:19.913 G Initialized all ABP modules. +2021-12-14 09:09:20.053 G Now listening on: "http://localhost:44378" +2021-12-14 09:09:20.056 G Application started. Press Ctrl+C to shut down. +2021-12-14 09:09:20.058 G Hosting environment: "Development" +2021-12-14 09:09:20.061 G Content root path: "D:\2020工作文件\派格-结算系统\派格源代码\Win.Sfs.SmartSettlementSystem.PG\src\Modules\SettleAccount\host\SettleAccount.HttpApi.Host" +2021-12-14 09:09:22.373 G Request starting HTTP/1.1 GET http://localhost:44378/ - - +2021-12-14 09:09:23.668 G Executing endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-12-14 09:09:23.753 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-12-14 09:09:23.795 G Executing RedirectResult, redirecting to "/swagger". +2021-12-14 09:09:23.805 G Executed action "Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)" in 40.0587ms +2021-12-14 09:09:23.807 G Executed endpoint '"Win.Sfs.SettleAccount.Controllers.HomeController.Index (SettleAccount.HttpApi.Host)"' +2021-12-14 09:09:23.828 G Request finished HTTP/1.1 GET http://localhost:44378/ - - - 302 0 - 1457.8982ms +2021-12-14 09:09:23.852 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/index.html - - +2021-12-14 09:09:23.949 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/index.html - - - 200 - text/html;charset=utf-8 96.7194ms +2021-12-14 09:09:24.284 G Request starting HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - +2021-12-14 09:09:26.030 G Request finished HTTP/1.1 GET http://localhost:44378/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 1746.0585ms +2021-12-14 09:10:01.023 G Request starting HTTP/1.1 GET http://localhost:44378/api/settleaccount/ReportMakeService/InvoiceSettledDiff-Make?version=202109&customerCode=%5B%22%E5%A4%96%E8%B4%AD%E4%BB%B6-FAW%C2%A0CAR%C2%A0%C2%A0C105%E9%97%A8%E6%9D%BF%C2%A0%22%2C%22%E6%88%90%E5%93%81-%E7%BA%A2%E6%97%97E111%E6%9F%B1%E6%8A%A4%E6%9D%BF%22%2C%22%E7%84%8A%E6%8E%A5%E5%89%8D%E5%8D%8A%E6%88%90%E5%93%81-AUDI%20C7%22%2C%22%E6%9F%B1%E6%8A%A4%E6%9D%BF%E6%88%90%E5%93%81-MODEL%20C%22%2C%22%E9%97%A8%E6%9D%BF%E6%88%90%E5%93%81-AUDI%20Q5-PA%22%5D - - +2021-12-14 09:10:01.060 G Executing endpoint '"Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.InvoiceSettledDiffMake (SettleAccount.Application)"' +2021-12-14 09:10:01.094 G Route matched with "{action = \"InvoiceSettledDiffMake\", controller = \"Report\", area = \"\"}". Executing controller action with signature "System.Threading.Tasks.Task`1[System.String] InvoiceSettledDiffMake(System.String, System.String, System.String, System.Collections.Generic.List`1[System.String], System.String, System.String, System.String)" on controller "Win.Sfs.SettleAccount.Reports.ReportServices.ReportService" ("SettleAccount.Application"). diff --git a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211129095823_init.Designer.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211129095823_init.Designer.cs deleted file mode 100644 index 6c46c9d8..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211129095823_init.Designer.cs +++ /dev/null @@ -1,10345 +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("20211129095823_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("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("Extend") - .HasColumnType("nvarchar(max)"); - - 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("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - 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("IsDeleted") - .ValueGeneratedOnAdd() - .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("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("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.Entities.VWKanBan.KanBanSettle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .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("Extend") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Flag") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("Kanban") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Relation") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("SettleInputDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Kanban", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_KanBanSettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWKanBan.KanBanVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .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_KanBanSettle_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWScrapClaims.ScrapClaims", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - 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("Extend") - .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("MaterialCode") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasMaxLength(1000) - .HasColumnType("nvarchar(1000)"); - - b.Property("Type") - .IsRequired() - .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_ScrapClaims"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWScrapClaims.ScrapClaimsVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .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_ScrapClaims_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWSparePart.SparePart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("AmountNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("BatchNo") - .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("DeliveryLineNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeliveryOrderNo") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FactoryName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GermanInvoiceNo") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("InvoicedQty") - .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("LineNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseOrderNo") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrderNoItem") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrderNoText") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasePriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("PurchaseType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReceiptQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpareDate") - .HasColumnType("datetime2"); - - b.Property("TaxCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("Unit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "PurchaseOrderNo", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_SparePart"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.VWSparePart.SparePartVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .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_WMSSparePart_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.WMS_KanBan.WMSKanBanSettle", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Batch") - .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("DeliveryOrderNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Flag") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false) - .HasColumnName("IsDeleted"); - - b.Property("Kanban") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("ParentId") - .HasColumnType("uniqueidentifier"); - - b.Property("PartType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,2)"); - - b.Property("Relation") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SettleDate") - .HasColumnType("datetime2"); - - b.Property("SettleInputDate") - .HasColumnType("datetime2"); - - b.Property("State") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasColumnType("nvarchar(450)"); - - b.Property("WMSActualGoodsDate") - .HasColumnType("nvarchar(max)"); - - b.Property("WMSDeliverGoodsState") - .HasColumnType("nvarchar(max)"); - - b.Property("WMSDeliveryNote") - .HasColumnType("nvarchar(max)"); - - b.Property("WMSDeliveryQty") - .HasColumnType("decimal(18,2)"); - - b.Property("WMSKanBanState") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "Kanban", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_WMSKanBanSettle"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.WMS_KanBan.WMSKanBanVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("BranchId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsDeleted") - .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_WMSKanBanSettle_Version"); - }); - - modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.WMS_SparePart.WMSSparePart", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("AccountNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("AmountNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("BatchNo") - .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("DeliveryLineNum") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("DeliveryOrderNo") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("Extend") - .HasMaxLength(250) - .HasColumnType("nvarchar(250)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("FactoryName") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("GermanInvoiceNo") - .HasMaxLength(100) - .HasColumnType("nvarchar(100)"); - - b.Property("InvoicedQty") - .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("LineNumber") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("MaterialCode") - .IsRequired() - .HasMaxLength(150) - .HasColumnType("nvarchar(150)"); - - b.Property("MaterialDesc") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Period") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("PurchaseOrderNo") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrderNoItem") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchaseOrderNoText") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("PurchasePriceNoTax") - .HasColumnType("decimal(18,2)"); - - b.Property("PurchaseType") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("ReceiptQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SpareDate") - .HasColumnType("datetime2"); - - b.Property("TaxCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,2)"); - - b.Property("Unit") - .HasMaxLength(50) - .HasColumnType("nvarchar(50)"); - - b.Property("Version") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("WMSDeliverGoodsState") - .HasColumnType("nvarchar(max)"); - - b.Property("WMSDeliveryNote") - .HasColumnType("nvarchar(max)"); - - b.Property("WMSKanBanState") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.HasKey("Id"); - - b.HasIndex("Version", "PurchaseOrderNo", "MaterialCode") - .IsUnique() - .HasFilter("IsDeleted=0"); - - b.ToTable("Set_WMSSparePart"); - }); - - 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("AccountDate") - .HasColumnType("datetime2"); - - 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("UnSettleVersion") - .HasColumnType("nvarchar(max)"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(36) - .HasColumnType("nvarchar(36)"); - - b.Property("WMSBillNum") - .HasColumnType("nvarchar(max)"); - - b.Property("WMSState") - .HasColumnType("nvarchar(max)"); - - 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.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("CP7ScrapQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ClaimQty") - .HasColumnType("decimal(18,2)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeleterId") - .HasColumnType("uniqueidentifier") - .HasColumnName("DeleterId"); - - b.Property("DeletionTime") - .HasColumnType("datetime2") - .HasColumnName("DeletionTime"); - - b.Property("DiffPrice") - .HasColumnType("decimal(18,2)"); - - b.Property("DiffQty") - .HasColumnType("decimal(18,2)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Factory") - .HasColumnType("nvarchar(max)"); - - b.Property("InvoiceAmt") - .HasColumnType("decimal(18,2)"); - - b.Property("InvoicePrice") - .HasColumnType("decimal(18,2)"); - - 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("MaterialDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("SalePrice") - .HasColumnType("decimal(18,2)"); - - b.Property("SapMaterialCode") - .HasColumnType("nvarchar(max)"); - - b.Property("SapMaterialGroup") - .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/20211129095823_init.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211129095823_init.cs deleted file mode 100644 index 06968179..00000000 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/20211129095823_init.cs +++ /dev/null @@ -1,4385 +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(36)", maxLength: 36, 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: true), - CP7Time = table.Column(type: "datetime2", nullable: false), - SettledQty = table.Column(type: "decimal(18,2)", nullable: false), - State = table.Column(type: "int", nullable: false), - SettleState = table.Column(type: "int", nullable: false), - ErpMaterialCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - WMSState = table.Column(type: "nvarchar(max)", nullable: true), - WMSBillNum = table.Column(type: "nvarchar(max)", nullable: true), - UnSettleVersion = table.Column(type: "nvarchar(max)", nullable: true), - AccountDate = 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", 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), - 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(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), - SettleState = table.Column(type: "int", nullable: false), - ErpMaterialCode = 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_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), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - MaterialDesc = 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), - Extend = 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(1000)", maxLength: 1000, 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), - Version = table.Column(type: "nvarchar(max)", nullable: true), - SapMaterialGroup = table.Column(type: "nvarchar(max)", nullable: true), - SapMaterialCode = table.Column(type: "nvarchar(max)", nullable: true), - Factory = table.Column(type: "nvarchar(max)", nullable: true), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialDesc = table.Column(type: "nvarchar(max)", nullable: true), - InvoiceQty = table.Column(type: "decimal(18,2)", nullable: false), - InvoiceAmt = table.Column(type: "decimal(18,2)", nullable: false), - InvoicePrice = table.Column(type: "decimal(18,2)", nullable: false), - SettleQty = table.Column(type: "decimal(18,2)", nullable: false), - DiffQty = table.Column(type: "decimal(18,2)", nullable: false), - CP7ScrapQty = table.Column(type: "decimal(18,2)", nullable: false), - ClaimQty = table.Column(type: "decimal(18,2)", nullable: false), - SalePrice = table.Column(type: "decimal(18,2)", nullable: false), - DiffPrice = 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), - 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_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.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); - }); - - 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_KanBanSettle", - 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), - Kanban = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - Relation = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleInputDate = table.Column(type: "datetime2", nullable: false), - Batch = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Flag = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettleDate = table.Column(type: "datetime2", nullable: false), - State = table.Column(type: "nvarchar(max)", nullable: true), - Extend = 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_KanBanSettle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_KanBanSettle_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), - 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_KanBanSettle_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_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); - }); - - 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), - CarCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - YearKennCode = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true), - Year = 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_prebatch", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_PriceList", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - 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_ScrapClaims", - 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), - Type = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - MaterialCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - MaterialDesc = 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), - Extend = 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(1000)", maxLength: 1000, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Set_ScrapClaims", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_ScrapClaims_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), - 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_ScrapClaims_Version", 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_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), - IsSettle = table.Column(type: "nvarchar(max)", 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: "decimal(18,2)", maxLength: 50, nullable: false), - SupplyProportion = table.Column(type: "decimal(18,2)", maxLength: 50, nullable: false), - 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); - }); - - 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_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.CreateTable( - name: "Set_settlement_part_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), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = 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_settlement_part_version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_SettlementCrossReference", - 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), - 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(128)", maxLength: 128, nullable: true), - Buyer = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - CustomerCode = 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", x => x.Id); - }); - - 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", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BranchId = 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), - Version = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - CustomerCode = table.Column(type: "nvarchar(max)", nullable: true), - Model = 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), - 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); - }); - - 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); - }); - - migrationBuilder.CreateTable( - name: "Set_SparePart", - 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), - LineNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PurchaseType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PurchaseOrderNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - PurchaseOrderNoItem = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PurchaseOrderNoText = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReceiptQty = table.Column(type: "decimal(18,2)", nullable: false), - InvoicedQty = table.Column(type: "decimal(18,2)", nullable: false), - AmountNoTax = table.Column(type: "decimal(18,2)", nullable: false), - PurchasePriceNoTax = table.Column(type: "decimal(18,2)", nullable: false), - AccountNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SpareDate = table.Column(type: "datetime2", nullable: false), - DeliveryOrderNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - DeliveryLineNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BatchNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Unit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TaxRate = table.Column(type: "decimal(18,2)", nullable: false), - TaxCode = table.Column(type: "nvarchar(max)", nullable: true), - GermanInvoiceNo = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FactoryName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend = table.Column(type: "nvarchar(250)", maxLength: 250, 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_SparePart", 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: true), - 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_WMSKanBanSettle", - 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), - Kanban = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - Relation = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - PartType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SupplierCode = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SettleInputDate = table.Column(type: "datetime2", nullable: false), - Batch = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Flag = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Qty = table.Column(type: "decimal(18,2)", nullable: false), - SettleDate = table.Column(type: "datetime2", nullable: false), - State = table.Column(type: "nvarchar(max)", nullable: true), - WMSDeliveryNote = table.Column(type: "nvarchar(max)", nullable: true), - WMSActualGoodsDate = table.Column(type: "nvarchar(max)", nullable: true), - WMSDeliveryQty = table.Column(type: "decimal(18,2)", nullable: false), - WMSDeliverGoodsState = table.Column(type: "nvarchar(max)", nullable: true), - WMSKanBanState = table.Column(type: "nvarchar(max)", nullable: true), - DeliveryOrderNo = table.Column(type: "nvarchar(max)", nullable: true), - Extend = 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_WMSKanBanSettle", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_WMSKanBanSettle_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), - 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_WMSKanBanSettle_Version", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_WMSSparePart", - 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), - LineNumber = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PurchaseType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PurchaseOrderNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - PurchaseOrderNoItem = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - PurchaseOrderNoText = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - ReceiptQty = table.Column(type: "decimal(18,2)", nullable: false), - InvoicedQty = table.Column(type: "decimal(18,2)", nullable: false), - AmountNoTax = table.Column(type: "decimal(18,2)", nullable: false), - PurchasePriceNoTax = table.Column(type: "decimal(18,2)", nullable: false), - AccountNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - MaterialCode = table.Column(type: "nvarchar(150)", maxLength: 150, nullable: false), - MaterialDesc = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - SpareDate = table.Column(type: "datetime2", nullable: false), - DeliveryOrderNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), - DeliveryLineNum = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - BatchNo = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Unit = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - TaxRate = table.Column(type: "decimal(18,2)", nullable: false), - TaxCode = table.Column(type: "nvarchar(max)", nullable: true), - GermanInvoiceNo = table.Column(type: "nvarchar(100)", maxLength: 100, nullable: true), - Factory = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - FactoryName = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true), - Extend = table.Column(type: "nvarchar(250)", maxLength: 250, nullable: true), - WMSDeliveryNote = table.Column(type: "nvarchar(max)", nullable: true), - WMSDeliverGoodsState = table.Column(type: "nvarchar(max)", nullable: true), - WMSKanBanState = 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_WMSSparePart", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Set_WMSSparePart_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), - 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_WMSSparePart_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_KENNCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "KENNCode" }); - - migrationBuilder.CreateIndex( - name: "IX_Set_fis_ChassisNumber2_Version_KENNCode_ItemCode", - table: "Set_fis", - columns: new[] { "ChassisNumber2", "Version", "KENNCode", "ItemCode" }); - - 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_item_invoice_price_Period_Version_MaterialCode", - table: "Set_item_invoice_price", - columns: new[] { "Period", "Version", "MaterialCode" }, - 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_KanBanSettle_Version_Kanban_MaterialCode", - table: "Set_KanBanSettle", - columns: new[] { "Version", "Kanban", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_KanBanSettle_Version_Version", - table: "Set_KanBanSettle_Version", - column: "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_relationship_ErpMaterialCode", - table: "Set_relationship", - column: "ErpMaterialCode", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_ScrapClaims_Version_Version", - table: "Set_ScrapClaims_Version", - column: "Version", - 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_KENNCode", - table: "Set_Settle", - columns: new[] { "Version", "ChassisNumber", "MaterialCode", "KENNCode" }); - - 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"); - - migrationBuilder.CreateIndex( - name: "IX_Set_SettlementCrossReference_Version_SettlementMaterialCode_BomMaterialCode", - table: "Set_SettlementCrossReference", - columns: new[] { "Version", "SettlementMaterialCode", "BomMaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_SparePart_Version_PurchaseOrderNo_MaterialCode", - table: "Set_SparePart", - columns: new[] { "Version", "PurchaseOrderNo", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - 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_Set_WMSKanBanSettle_Version_Kanban_MaterialCode", - table: "Set_WMSKanBanSettle", - columns: new[] { "Version", "Kanban", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_WMSKanBanSettle_Version_Version", - table: "Set_WMSKanBanSettle_Version", - column: "Version", - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_WMSSparePart_Version_PurchaseOrderNo_MaterialCode", - table: "Set_WMSSparePart", - columns: new[] { "Version", "PurchaseOrderNo", "MaterialCode" }, - unique: true, - filter: "IsDeleted=0"); - - migrationBuilder.CreateIndex( - name: "IX_Set_WMSSparePart_Version_Version", - table: "Set_WMSSparePart_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_item_invoice_price"); - - migrationBuilder.DropTable( - name: "Set_item_invoice_price_version"); - - 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_KanBanSettle"); - - migrationBuilder.DropTable( - name: "Set_KanBanSettle_Version"); - - migrationBuilder.DropTable( - name: "Set_material"); - - migrationBuilder.DropTable( - name: "Set_MaterialRelationshipDetail"); - - migrationBuilder.DropTable( - name: "Set_MaterialRelationshipVersion"); - - migrationBuilder.DropTable( - name: "Set_prebatch"); - - migrationBuilder.DropTable( - name: "Set_PriceList"); - - migrationBuilder.DropTable( - name: "Set_PriceListVersion"); - - migrationBuilder.DropTable( - name: "Set_relationship"); - - migrationBuilder.DropTable( - name: "Set_ScrapClaims"); - - migrationBuilder.DropTable( - name: "Set_ScrapClaims_Version"); - - 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_SecMatchBase"); - - migrationBuilder.DropTable( - name: "Set_send_unsettled_report_detail"); - - migrationBuilder.DropTable( - name: "Set_Settle"); - - migrationBuilder.DropTable( - name: "Set_Settle_Version"); - - migrationBuilder.DropTable( - name: "Set_settlement_part"); - - migrationBuilder.DropTable( - name: "Set_settlement_part_version"); - - migrationBuilder.DropTable( - name: "Set_SettlementCrossReference"); - - migrationBuilder.DropTable( - name: "Set_SettlementCrossReference_Version"); - - migrationBuilder.DropTable( - name: "Set_SettlementPakAndSpareParts"); - - migrationBuilder.DropTable( - name: "Set_SettlementPakAndSpareParts_Version"); - - migrationBuilder.DropTable( - name: "Set_SparePart"); - - 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: "Set_WMSKanBanSettle"); - - migrationBuilder.DropTable( - name: "Set_WMSKanBanSettle_Version"); - - migrationBuilder.DropTable( - name: "Set_WMSSparePart"); - - migrationBuilder.DropTable( - name: "Set_WMSSparePart_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/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs index 26603e57..85aec85f 100644 --- a/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs +++ b/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Migrations/SettleAccountHttpApiHostMigrationsDbContextModelSnapshot.cs @@ -1643,6 +1643,126 @@ namespace Win.Sfs.SettleAccount.Migrations b.ToTable("Set_btcarseq_version"); }); + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.BT_Car.BT_Car_Platform", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AcceptanceDate") + .HasColumnType("datetime2"); + + b.Property("BTCarKanBan") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("BranchId") + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("Enabled") + .HasColumnType("bit"); + + b.Property("Extend") + .HasColumnType("nvarchar(max)"); + + b.Property("ExternalKanbanNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + 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("KanbanNumber") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("MaterialVoucherNo") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Period") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StorageLocation") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("StorageLocationDesc") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Supplier") + .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.HasIndex("Version", "KanbanNumber", "MaterialCode") + .IsUnique() + .HasFilter("IsDeleted=0"); + + b.ToTable("Set_BT_Car_Platform"); + }); + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.Boms.BomVersion", b => { b.Property("Id") @@ -3130,6 +3250,412 @@ namespace Win.Sfs.SettleAccount.Migrations b.ToTable("Set_hqspkb_version"); }); + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQ_H.HQ_H_Platform", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AcceptanceDate") + .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("Extend") + .HasColumnType("nvarchar(max)"); + + b.Property("ExternalKanbanNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("Factory") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("HQHKanBan") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("KanbanNumber") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("MaterialVoucherNo") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Period") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StorageLocation") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("StorageLocationDesc") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Supplier") + .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.HasIndex("Version", "HQHKanBan", "MaterialCode") + .IsUnique() + .HasFilter("IsDeleted=0"); + + b.ToTable("Set_HQ_H_Platform"); + }); + + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQ_H.HQ_H_PlatformVersion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("BranchId") + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("CustomerCode") + .HasMaxLength(36) + .HasColumnType("nvarchar(36)"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("Enabled") + .HasColumnType("bit"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .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_HQ_H_PlatformVersion"); + }); + + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQ_M.HQ_M_Platform", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("AcceptanceDate") + .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("Extend") + .HasColumnType("nvarchar(max)"); + + b.Property("ExternalKanbanNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("Factory") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("HQMKanBan") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("KanbanNumber") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("MaterialVoucherNo") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Period") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("StorageLocation") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("StorageLocationDesc") + .HasMaxLength(150) + .HasColumnType("nvarchar(150)"); + + b.Property("Supplier") + .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.HasIndex("Version", "HQMKanBan", "MaterialCode") + .IsUnique() + .HasFilter("IsDeleted=0"); + + b.ToTable("Set_HQ_M_Platform"); + }); + + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.HQ_M.HQ_M_PlatformVersion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("uniqueidentifier"); + + b.Property("BranchId") + .HasColumnType("uniqueidentifier"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("nvarchar(40)") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("CustomerCode") + .HasMaxLength(36) + .HasColumnType("nvarchar(36)"); + + b.Property("DeleterId") + .HasColumnType("uniqueidentifier") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime2") + .HasColumnName("DeletionTime"); + + b.Property("Enabled") + .HasColumnType("bit"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .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_HQ_M_PlatformVersion"); + }); + modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.ImportMap.ImportColumnMap", b => { b.Property("Id") @@ -5266,7 +5792,7 @@ namespace Win.Sfs.SettleAccount.Migrations b.HasIndex("state"); - b.HasIndex("Version", "ChassisNumber", "MaterialCode") + b.HasIndex("Version", "ChassisNumber", "MaterialCode", "KENNCode") .IsUnique(); b.ToTable("Set_Unsettle"); @@ -6772,7 +7298,7 @@ namespace Win.Sfs.SettleAccount.Migrations .IsUnique() .HasFilter("IsDeleted=0"); - b.ToTable("Set_WMSSparePart_Version"); + b.ToTable("Set_BT_Car_PlatformVersion"); }); modelBuilder.Entity("Win.Sfs.SettleAccount.Entities.WMS_KanBan.WMSKanBanSettle", b => diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index 72668cdf..9b0abcd3 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -814,7 +814,7 @@ namespace Win.Sfs.SettleAccount b.Property(x => x.Enabled); b.HasIndex(x => new { x.state }); - b.HasIndex(x => new { x.Version, x.ChassisNumber, x.MaterialCode }).IsUnique(); + b.HasIndex(x => new { x.Version, x.ChassisNumber, x.MaterialCode,x.KENNCode }).IsUnique(); }); } /// diff --git a/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.assets.cache b/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.assets.cache index d38d92d2..ca680b9a 100644 Binary files a/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.assets.cache and b/src/Shared/Win.Abp.Snowflakes/obj/Debug/netcoreapp5/Win.Abp.Snowflakes.assets.cache differ diff --git a/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.assets.cache b/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.assets.cache index dc26ecbe..b615d61a 100644 Binary files a/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.assets.cache and b/src/Shared/Win.Sfs.Shared/obj/Debug/netcoreapp5/Win.Sfs.Shared.assets.cache differ diff --git a/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.assets.cache b/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.assets.cache index e262b1a9..773e9a86 100644 Binary files a/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.assets.cache and b/src/Shared/Win.Utils/obj/Debug/netcoreapp5/Win.Utils.assets.cache differ diff --git a/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue b/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue index 98c390cb..7028fe86 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/detailMB.vue @@ -378,7 +378,7 @@ export default { watch: { customerInfosMB: { handler(newVal) { - console.log("门板-接收的父组件的值:"+JSON.stringify(newVal)) + console.log("门板-接收的父组件的值:" + JSON.stringify(newVal)); if (newVal == "" || newVal == "undefined") { //TODO } else { @@ -386,9 +386,7 @@ export default { this.customerInfo.printType = element.PrintType; this.customerInfo.productLine = element.ProductLine; }); - if ( - this.customerInfo.productLine != "" - ) { + if (this.customerInfo.productLine != "") { this.getList(); } } @@ -586,12 +584,15 @@ export default { }); return; } else { - let dataname = JSON.stringify(response.item); - console.log("门板-调用Handlers/Handler1.ashx?report=menban传的值:"+dataname) + this.fileQuery.dataname = JSON.stringify(response.item); + console.log( + "门板-调用Handlers/Handler1.ashx?report=menban传的值:" + + JSON.stringify(this.fileQuery.dataname) + ); this.$axios .posts( "/Handlers/Handler1.ashx?report=menban", - qs.stringify(dataname) + qs.stringify(this.fileQuery) ) .then((response) => { this.printpdf(response); //打印我文件流 diff --git a/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue b/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue index c1a10e33..74f99d12 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/detailZHB.vue @@ -274,7 +274,7 @@ export default { totalCount: 0, listLoading: true, customerInfo: { - printType: "", + printType: "1", productLine: "", }, // 高级搜索 @@ -358,18 +358,16 @@ export default { watch: { customerInfosZHB: { handler(newVal) { - console.log("柱护板-接收的父组件的值:"+JSON.stringify(newVal)) + console.log("柱护板-接收的父组件的值:" + JSON.stringify(newVal)); if (newVal == "" || newVal == "undefined") { //TODO } else { newVal.forEach((element) => { - this.customerInfo.printType = element.PrintType; + this.customerInfo.printType = "1"; this.customerInfo.productLine = element.ProductLine; }); - console.log("柱护板监控传值:"+JSON.stringify(this.customerInfo)) - if ( - this.customerInfo.productLine != "" - ) { + console.log("柱护板监控传值:" + JSON.stringify(this.customerInfo)); + if (this.customerInfo.productLine != "") { this.getList(); } } @@ -516,7 +514,7 @@ export default { this.listQuery.ProductLine = this.customerInfo.productLine; } - console.log("柱护板-列表查询条件:"+JSON.stringify(this.listQuery)); + console.log("柱护板-列表查询条件:" + JSON.stringify(this.listQuery)); this.$axios .posts( "/api/newjit/ZhuHuBanPackingList/ZhuHuBanPackingList-List", @@ -549,7 +547,7 @@ export default { let beginVin1 = this.multipleSelection[0].beginVin1; let endVin1 = this.multipleSelection[0].endVin1; var params = { - printType: this.customerInfo.printType, + printType: "1", productLine: this.customerInfo.productLine, beginVin: beginVin1, endVin: endVin1, @@ -558,7 +556,7 @@ export default { this.$axios .posts("/api/newjit/bill-m100/print-zhuhuban-packing-list", params) .then((response) => { - console.log("柱护版-打印返回的状态:"+response.status); + console.log("柱护版-打印返回的状态:" + response.status); const index = this.list.indexOf(row); if (response.status === false) { this.$message({ @@ -567,12 +565,15 @@ export default { }); return; } else { - let dataname = JSON.stringify(response.item); - console.log("柱板-调用Handlers/Handler1.ashx?report=menban传的值:"+dataname) + this.fileQuery.dataname = JSON.stringify(response.item); + console.log( + "柱板-调用Handlers/Handler1.ashx?report=menban传的值:" + + JSON.stringify(this.fileQuery.dataname) + ); this.$axios .posts( "/Handlers/Handler1.ashx?report=menban", - qs.stringify(dataname) + qs.stringify(this.fileQuery) ) .then((response) => { this.printpdf(response); //打印我文件流 diff --git a/vue/src/views/pg-fis/basedate/m100Online/index.vue b/vue/src/views/pg-fis/basedate/m100Online/index.vue index 77969bf5..dfc95444 100644 --- a/vue/src/views/pg-fis/basedate/m100Online/index.vue +++ b/vue/src/views/pg-fis/basedate/m100Online/index.vue @@ -1575,7 +1575,6 @@ export default { document.body.appendChild(ifr); this.doPrint("printPdf" + date); window.URL.revokeObjectURL(ifr.src); // 释放URL 对象 - alert() this.dialogFormVisible = false; }, httpPost(URL, PARAMS) {